package com.huluobo.a2109mvpimdemo.chat;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.huluobo.a2109mvpimdemo.R;
import com.hyphenate.easeui.modules.chat.EaseChatFragment;

public class ChatActivity extends AppCompatActivity {
    private ChatFragment chatFragment;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_chat);
        chatFragment = new ChatFragment();
        chatFragment.setArguments(getIntent().getExtras());//传递联系人数据
        getSupportFragmentManager().beginTransaction().add(R.id.chat_container, chatFragment).commit();
    }
}